<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
-->
</style>
</head>

<body>
<%@ include file="backstage//bscommon1.jsp" %>
<table width="87%" border="0" align="right" cellpadding="0" cellspacing="0" style="margin-right:10px;">
<tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1" style="color:#fff;">用户留言列表</span></td>
              </tr>
            </table></td>
            <td><div align="right"><span class="STYLE1">
              
             <img src="images/add.gif" width="10" height="10" />  <img src="images/del.gif" width="10" height="10" />     &nbsp;&nbsp;<img src="images/edit.gif" width="10" height="10" /></span><span class="STYLE1"> &nbsp;</span></div></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
      <tr>
        <td width="4%" height="20" bgcolor="d3eaef" class="STYLE10"><div align="center">
          <input type="checkbox" name="checkbox" id="checkbox" />
        </div></td>
        <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">用户</span></div></td>
        <!--  <td width="11%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">商品标题</span></div></td>-->
        <td width="34%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">内容</span></div></td>
        <td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">留言时间</span></div></td>
        
        <td width="11%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">操作</span></div></td>
      </tr>
      
      <c:forEach items="${messageList}" var="m">
      <tr>
        <td height="20" bgcolor="#FFFFFF"><div align="center">
          <input type="checkbox" name="checkbox4" id="checkbox4" />
        </div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${m.name}</div></td>
        <!--  <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${m.name}</div></td>-->
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${m.message }</div></td>
		<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${m.createTime }</div></td>
		<td height="20" bgcolor="#FFFFFF"><div align="center"><span class="STYLE21">
			<a onclick="return confirm('确定删除该用户留言吗?')" href="LiuyanServlet?m=del&Id=${m.id }">删除</a>
					
		</td>
      </tr>
      </c:forEach>
    </table></td>
  </tr>
</table>
<%@ include file="backstage/bscommon2.jsp" %>
</body>
</html>